package com.chen.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
@Entity
@Table(name = "s_teacher")
public class Teacher implements Serializable {
    private Integer id;
    private String sn;
    private String username;
    private String password;
    private Integer clazzId;
    private String sex="男";
    private String mobile;
    private String qq;
    private String photo;

    public Teacher(Integer id, String sn, String username, String password, Integer clazzId, String sex, String mobile, String qq, String photo) {
        this.id = id;
        this.sn = sn;
        this.username = username;
        this.password = password;
        this.clazzId = clazzId;
        this.sex = sex;
        this.mobile = mobile;
        this.qq = qq;
        this.photo = photo;
    }

    public Teacher() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getClazzId() {
        return clazzId;
    }

    public void setClazzId(Integer clazzId) {
        this.clazzId = clazzId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", sn='" + sn + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", clazzId=" + clazzId +
                ", sex='" + sex + '\'' +
                ", mobile='" + mobile + '\'' +
                ", qq='" + qq + '\'' +
                ", photo='" + photo + '\'' +
                '}';
    }
}
